package com.ithhc.chain.dao;

import com.ithhc.chain.pojo.Customer;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface CustomerDao {

    @Select("select * from customer where id = #{id}")
    Customer getOneById(@Param("id") Long id);

    @Update("update customer set deposit =#{deposit} where id =#{id}")
    Integer updateById(Customer customer);
}
